package com.iphanta.community.following.traffic.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.iphanta.community.common.Number2StringJsonSerializer;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/22/22 5:03 PM
 */
@Data
@ToString
public class DynamicComment {

    /**
     * 评论ID
     */
    @JsonSerialize(using = Number2StringJsonSerializer.class)
    private Long id;

    /**
     * 评论内容
     */
    private String comment;

    /**
     * 评论用户
     */
    private String authorId;

    /**
     * 用户昵称
     */
    private String authorName;

    /**
     * 用户头像
     */
    private String authorPhoto;

    /**
     * 动态ID
     */
    @JsonSerialize(using = Number2StringJsonSerializer.class)
    private Long dynamicId;

    private Date createTime;

}
